'''
https://mirrors.aliyun.com/pytorch-wheels/cu111/

https://blog.csdn.net/weixin_39450145/article/details/126444591


查看cuda版本
C:\Users\COLORFUL>nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Nov_30_19:15:10_Pacific_Standard_Time_2020
Cuda compilation tools, release 11.2, V11.2.67
Build cuda_11.2.r11.2/compiler.29373293_0

11.2版本 

安装cuda113版本，官方没有cuda112版本


# cuda 113版本可以  cuda 11.2 
pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 -f https://mirrors.aliyun.com/pytorch-wheels/cu113/
pip install torchaudio==0.12.1 -f https://download.pytorch.org/whl/torch_stable.html
pip install torchvision==0.13.1+cu113 -f https://download.pytorch.org/whl/torch_stable.html

安装 torchtext
https://blog.csdn.net/zuoli_/article/details/129270408

'''
import torch
print(torch.cuda.is_available())


版本对于的官网
https://pytorch.ac.cn/get-started/previous-versions/
https://blog.csdn.net/weixin_41809117/article/details/141246957


cuda 121  

wsl ubuntun 22.04版本
# pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu121
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu121
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 -f https://mirrors.aliyun.com/pytorch-wheels/cu121/